package com.jiangruan.javaApiProject;

import bean.FunnyPeople;
import bean.HotVideoCommon;
import com.alibaba.fastjson.JSONObject;
import com.jiangruan.javaApiProject.bean.bean.*;
import com.jiangruan.javaApiProject.net.HttpUtils;
import com.jiangruan.javaApiProject.service.*;

import java.util.List;
import java.util.Scanner;

import static com.jiangruan.javaApiProject.service.GamePersonService.getGamePerson;

/**
 * @Author 默
 * @Date 9:07 2021/12/4
 * @desc:该类是java项目主函数的类
 * @Description
 */

public class Main {
    public static void main(String[] args) {

        System.out.println("欢迎使用热门榜单视频api");
        System.out.println("请选择： 1.热门视频榜");
        System.out.println("         2.搞笑达人榜 ");
        System.out.println("         3.游戏达人榜 ");
        System.out.println("         4.美食达人榜 ");
        System.out.println("         5.汽车达人榜 ");
        System.out.println("         6.体育达人榜 ");
        System.out.println("         7.二次元达人榜 ");
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();

        switch (num){
            case 1:
                List<GamePerson> gamePerson = getGamePerson();
                System.out.println(gamePerson);
                break;
            case 2:
                List<FunnyPeople> funnyPeople = FunnyPeopleService.getFunnyPeople();
                System.out.println(funnyPeople);
                break;
            case 3:
                List<GamePerson> gamePeople = GamePersonService.getGamePerson();
                System.out.println(gamePeople);
                break;
            case 4:
                List<CarPersonCommon> carPerson = CarPersonService.getCarPerson();
                System.out.println(carPerson);
                break;
            case 5:
                List<DeliciousFood> deliciousFood = DeliciousFoodService.getDeliciousFood();
                System.out.println(deliciousFood);
                break;
            case 6:
                List<SporPersontCommon> sportPerson = SportPersoService.getSportPerson();
                System.out.println(sportPerson);
                break;
            case 7:
                List<SecondaryPersonCommon> secondaryPerson = SecondaryPersonService.getSecondaryPerson();
                System.out.println(secondaryPerson);
                break;
                default:
                    System.out.println("已结束");

        }

    }
}
